package com.ferry.config;

import io.minio.MinioClient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MinioConfiguration {
    @Autowired
    private MinioProp minioProp;

    @Bean
    public MinioClient minioClient()  {
        System.out.println(minioProp);
        return MinioClient.builder().endpoint(minioProp.getEndpoint()).credentials(minioProp.getAccesskey(),minioProp.getSecretKey()).build();
    }

}